package com.six.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 专区商品关联表
 * @TableName tb_zone_goods
 */
@ApiModel(description = "专区商品关联表")
@TableName(value ="tb_zone_goods")
@Data
public class ZoneGoods implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_Modified",fill = FieldFill.INSERT_UPDATE)//添加时自动填充
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtModified;

    /**
     * 状态(1:正常;0:禁用)
     */
    @ApiModelProperty("状态(1:正常;0:禁用)")
    @TableField(value = "is_disable",fill = FieldFill.INSERT)//添加时自动填充
    private Integer isDisable;

    /**
     * 逻辑删除
     */
    @ApiModelProperty("逻辑删除")
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)//添加时自动填充
    private Integer isDeleted;

    /**
     * 专区编号
     */
    @ApiModelProperty("专区编号")
    private String zoneid;

    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    private Integer goodsid;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}